package com.tools.genxsd.entity;

import java.io.Serializable;
import java.util.List;

/**
 * @author: zhoubin
 * @date: 2022/11/9
 */
public abstract class XsdBaseType implements Serializable {

    public void setChild(XsdElement element) {}

    public void setMaxLength(String maxLength) {}

    public void setName(String name) {}

    public void setPattern(String pattern) {}

    public void setEnumList(List<String> enumList) {}

    public abstract String getName();

    /**
     * 将改类型转为document
     * @param document
     * @return
     */
    public abstract void addToDocument(XsdDocument document);
}
